using System;
using UnityEngine;

public class MineralMine : MonoBehaviour
{
	[SerializeField]
	private SpriteRenderer room;

	[SerializeField]
	private SpriteRenderer crate;

	[SerializeField]
	private MineralSprite[] roomSprite;

	[SerializeField]
	private MineralSprite[] crateSprite;

	private void Start()
	{
		SpriteRenderer spriteRenderer = room;
		MineralSprite mineralSprite = Array.Find(roomSprite, (MineralSprite target) => target.mineral == Controller.instance.GetMineral);
		spriteRenderer.sprite = mineralSprite.sprite;
		SpriteRenderer spriteRenderer2 = crate;
		MineralSprite mineralSprite2 = Array.Find(crateSprite, (MineralSprite target) => target.mineral == Controller.instance.GetMineral);
		spriteRenderer2.sprite = mineralSprite2.sprite;
	}
}
